#include "Manager.h"


void Base::InitBase(int x, int y, int type)
{
	_x = x;
	_y = y;
	_type = type;
}


void Base::SaveBase(FILE * const pFile)
{
	fwrite(&_type, 1, sizeof(int), pFile);
	fwrite(&_x, 1, sizeof(int), pFile);
	fwrite(&_y, 1, sizeof(int), pFile);
}



void Base::PrintCls()
{
	printf("\033[6;28H                                                    ");
	printf("\033[7;28H                                                    ");
	printf("\033[8;28H                                                    ");
	printf("\033[9;28H                                                    ");
	printf("\033[10;28H                                                    ");
	printf("\033[11;28H                                                    ");
	printf("\033[12;28H                                                    ");
	printf("\033[13;28H                                                    ");
	printf("\033[14;28H                                                    ");
	printf("\033[15;28H                                                    ");
	printf("\033[16;28H                                                    ");
	printf("\033[17;28H                                                    ");
	printf("\033[18;28H                                                    ");
	printf("\33[?25l");
}



